package ooday01;
/**
 * 学生类的测试类
 * @author ${pxl}
 */
public class StudentTest {
    public static void main(String[] args) {
        //创建一个学生对象
        Student zs = new Student();
        //访问成员变量
        zs.name="张三";
        //给成员变量赋值
        zs.age=24;
        zs.className="jsd2302";
        zs.stuId="001";
        //调用方法
        zs.study();
        zs.sayHi();
        zs.playWith("李四");

        Student ls = new Student();
        ls.name="李四";
        ls.age=25;
        ls.className="jsd2302";
        ls.stuId="002";
        ls.study();
        ls.sayHi();
        ls.playWith("张三");

        Student pxl = new Student();
        pxl.name="彭小龙";
        pxl.age=24;
        pxl.className="jsd2302";
        pxl.stuId="1000337";
        pxl.hobby = "打游戏";
        pxl.study();
        pxl.sayHi();
        pxl.playSth();
        pxl.playWith("余豪杰");

    }
}
